package com.likejian.rabbit.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import com.likejian.rabbit.RabbitConfig;

@Component
@RabbitListener(queues = RabbitConfig.SPRINGBOOT_RABBIT_TOPIC_MESSAGES_QUEUE)
public class TopicMessagesReceiver {

    @RabbitHandler
    public void process(String msg) {
        System.out.println("TopicMessagesReceiver  : " +msg);
    }

}